package cn.lngaosu.lwyd.module.integration.controller.admin.weixinuseranalysis.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 微信用户分析表(增减合计、总用户量) Response VO")
@Data
@ExcelIgnoreUnannotated
public class WeixinUserAnalysisRespVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("主键")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "数据的日期")
    @ExcelProperty("数据的日期")
    @JsonSerialize(using = LocalDateSerializer.class)
    private LocalDate refDate;

    @Schema(description = "新增的用户数量")
    @ExcelProperty("新增的用户数量")
    private Integer newUser;

    @Schema(description = "取消关注的用户数量，new_user减去cancel_user即为净增用户数量")
    @ExcelProperty("取消关注的用户数量，new_user减去cancel_user即为净增用户数量")
    private Integer cancelUser;

    @Schema(description = "总用户量")
    @ExcelProperty("总用户量")
    private Integer cumulateUser;

}